package com.ids.actions;

import com.ids.service.AdminChangeEmployeePasswordService;
import com.opensymphony.xwork2.ActionSupport;

public class AdminChangeEmployeePassword extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private String empCode;
	private String newPassword;
	private String confirmPassword;

	public String execute() throws Exception {
		AdminChangeEmployeePasswordService adminChangeEmployeePassword = new AdminChangeEmployeePasswordService();
		String result = adminChangeEmployeePassword.insertChangedPassword(
				empCode, newPassword, confirmPassword);
		return result;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

}
